package com.aoip.telemetry.telemetry.entity.enums;

/**
 * 日志类型枚举类
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/12/1 11:43
 */
public enum LogTypeEnum {

    /**
     * 日志类型
     *
     * @date 2021/12/1
     **/
    LOG_RECEIVE(
            1, "数据接收服务"
    ), LOG_ANALYSIS(
            2, "数据解析服务"
    ), LOG_PIPELINE(
            3, "数据管道服务"
    ), LOG_ELEMENT_SAVE(
            4, "元素数据入库"
    ), LOG_TEST(
            5, "测试服务"
    );

    /**
     * @category 编码
     */
    private Integer code;
    /**
     * @category 说明
     */
    private String msg;

    LogTypeEnum(Integer code, String msg) {
        setCode(code);
        setMsg(msg);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
